<?php

namespace app\admin\controller;

use app\admin\model\Addres;
use app\admin\model\Gorder;
use app\common\controller\AdminController;
use EasyAdmin\annotation\ControllerAnnotation;
use EasyAdmin\annotation\NodeAnotation;
use think\App;
use app\admin\model\User as UserModel;
use think\facade\Db;
/**
 * @ControllerAnnotation(title="Gorder")
 */
class Completed extends AdminController
{
    //已完成订单展示
    public function index(){
        $data=Gorder::
        join('user','ea_order.user_id=user.id')->paginate(2);
        $arr = Gorder::
        join('receiving_address','receiving_address.location_id=ea_order.location_id')
            ->where('order_status',3)
            ->paginate(2);
        return view('Order/CompletedList',compact('arr','data'));
    }

    //添加
    public function CompletedAdd(){

    }

}